﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PropertyChanged
{
    enum Gender
    {
        Male,
        Female
    }

    class Person : IPropertyChangeNotification
    
        public Person()
        {
        }

        public string FirstName {
            get
            {
                return firstName;
            }
            set
            {
                firstName = value;
            }
        }

        public string LastName
        {
          get
          { 
              return lastName; 
          }
          set
          {
              lastName = value;
          }
        }

        public Gender Gender
        {
          get
          {
              return gender;
          }
          set
          {
              gender = value;
          }
        }
        

        private string firstName;
        private string lastName;
        private Gender gender;
        private DateTime birthDate;

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
